import box from "../../view";
import Container from "../components/main/Container";
import { RightMenuListItem } from "../components/RightMenuListItem";
import BaseElement from "../core/BaseElement";
import { PopUpConfig } from "../core/PopUp";

/**
 * 页面基类v0.1。所有全局标签页的页面都应该继承自这个类。
 */
export default class PageBase extends BaseElement{
    // constructor(config:PageConfig){
    //     super();
    // }
    /**
     * 创建右键菜单
     * @param config 
     */
    createRightMenu(config: PopUpConfig<RightMenuListItem[]>){
        box.createRightMenu(config);
    }
}

// export interface PageConfig{
//     container:Container
// }